package com.mql.ganio.model;

/**
 * 封装了服务器响应的结果
 */
public class BaseResp<T> {
    private int code;
    private T data;
    private String message;

    public int getCode() {
        return code;
    }

    public T getData() {
        return data;
    }

    public String getMessage() {
        return message;
    }

    public boolean isSuccess(){
        return 0==code;
    }
}
